from django.db import models

# Create your models here.
class JosPollData(models.Model):
    id = models.IntegerField(primary_key=True)
    pollid = models.IntegerField()
    text = models.TextField()
    hits = models.IntegerField()
    class Meta:
        db_table = u'jos_poll_data'

class JosPollDate(models.Model):
    id = models.BigIntegerField(primary_key=True)
    date = models.DateTimeField()
    vote_id = models.IntegerField()
    poll_id = models.IntegerField()
    class Meta:
        db_table = u'jos_poll_date'

class JosPollMenu(models.Model):
    pollid = models.IntegerField(primary_key=True)
    menuid = models.IntegerField(primary_key=True)
    class Meta:
        db_table = u'jos_poll_menu'

class JosPolls(models.Model):
    id = models.IntegerField(primary_key=True)
    title = models.CharField(max_length=255)
    alias = models.CharField(max_length=255)
    voters = models.IntegerField()
    checked_out = models.IntegerField()
    checked_out_time = models.DateTimeField()
    published = models.IntegerField()
    access = models.IntegerField()
    lag = models.IntegerField()
    class Meta:
        db_table = u'jos_polls'
